import {lazy,Suspense} from "react" // lazy是路由懒加载 ，路由没加载出来前得loading
let routerList = [
    {
        path:"/all",
        component:lazy(()=>import("../pages/all")),
        children:[
            {
                path:"/all/show",
                component:lazy(()=>import("../pages/show"))
            },
            {
                path:"/all/movie",
                component:lazy(()=>import("../pages/movie"))
            },
            {
                path:"/all/video",
                component:lazy(()=>import("../pages/video"))
            },
            {
                from:"/all",
                to:"/all/show"
            }
        ]
    },
    {
        path:"/my",
        component:lazy(()=>import("../pages/my"))
    },
    {
        path:"/login",
        component:lazy(()=>import("../pages/login"))
    },
    {
        path:"/detail",
        component:lazy(()=>import("../pages/detail"))
    },
    {
        from:"/",
        to:"/all"
    }

]
export default routerList